# m行n列*矩阵
m,n=4,5
for i in range(m):
    print('*'*n)

print("="*30)

# n行字符等腰三角形
n=8
for i in range(n):
    print(' '*(n-i-1)+'*'*(i*2+1))

print("="*30)

# 桃子问题
'''
每天 吃n/2+1
'''
days = 4
n = 1
for i in range(days-1):
    n = (n+1)*2
print(n)

print("="*30)
# 9*9乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(f"{i}*{j}={i*j}",end=" ")
    print("\n")